

using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
     [Table("Commodity")]
     [Comment("商品表")]
     public class Commodity:BaseModel
    {
        /// <summary>
        /// 商品编码
        /// </summary>           
        public string  CommodityId { get; set; }
        
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Commodityname { get; set; }
        
        /// <summary>
        /// 年份
        /// </summary>
        public string Year { get; set; }
        
        /// <summary>
        /// 第一计量单位编码
        /// </summary>
        public string Firstuomcode { get; set; }
        
        /// <summary>
        /// 第一计量单位名称
        /// </summary>
        public string Firstuomname { get; set; }
        
        /// <summary>
        /// 第二计量单位编码
        /// </summary>
        public string Seconduomcode { get; set; }
        
        /// <summary>
        /// 第二计量单位名称
        /// </summary>
        public string Seconduomname { get; set; }
        
        /// <summary>
        /// HS编码（海关商品编码）
        /// </summary>
        public string Hscode { get; set; }
        
        /// <summary>
        /// 商品描述
        /// </summary>
        public string Commoditydescription { get; set; }
        
        /// <summary>
        /// 产品英文名称
        /// </summary>
        public string Commodityenglishname { get; set; }
        
        /// <summary>
        /// 数据来源
        /// </summary>
         [DefaultValue(1)]
        public int Datasources { get; set; }
        
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? Addtime { get; set; }=DateTime.Now;
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Updatetime { get; set; }
        
        public List<TradeData> TradeDatas { get; set; }
    }
}